package com.viphome.security;

/**
 * Created by wangzhanjin on 2017/12/22.
 */
public class CurrentUserHolder {


    private static final ThreadLocal<String> holder = new ThreadLocal<>();

    public static String get(){
        return holder.get() == null ? "unkown" : holder.get();
    }

    public static void set(String user){
        holder.set(user);
    }
}
